// 时间格式转换 （年月日）
export const getTime = (date: Date) => {
    const e = new Date(date)
    let month: string, day: string
    if(e.getMonth()+1<10){month='0'+(e.getMonth()+1)}else{month=String(e.getMonth()+1)}
    if(e.getDate()<10){day='0'+(e.getDate())}else{day=String(e.getDate())}
    return e.getFullYear()+'-'+month+'-'+ day
}